-- GENERATED SPELL FOR [Gangled Flesheater] --


function spell0_16322(pUnit, Event) --@Spirit Decay,n/a--
pUnit:FullCastSpellOnTarget(8016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16322', 2000, 1)
end

function Sorts_16322(pUnit, Event)
local choix_sorts_16322 = math.random(0, 0)
if choix_sorts_16322 == 0 then
pUnit:RegisterEvent('spell0_16322', 1, 1)
end
end

function mob16322_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16322', math.random(1500, 3000), 1)
end

function mob16322_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16322_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16322_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16322, 1, 'mob16322_Action')
RegisterUnitEvent(16322, 2, 'mob16322_Leave')
RegisterUnitEvent(16322, 3, 'mob16322_Kill')
RegisterUnitEvent(16322, 4, 'mob16322_Die')
